local file = io.open(arg[1]);
assert(file,"file open error");
local idx = 1;
for l in file:lines()do

    local v,n = string.match(l,"(%x+)%s*(.+)");
    n = n or string.match(l,"(.+)");
    v = v or string.format("%x",idx);
    idx = idx + 1;
    print(string.format('%s:0x%s,',n,v));
end
